Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Help with agent document selection
~Wendy Preveluburoopsi 5.Feb.03 12:25 PM a Web browser
Applications Development 6.0 Windows 2000


I have experienced the same problem. I think the Cleanup agent in domlog.nsf works inefficiently because normally it should not need full text index. My solution is to replace the original Cleanup agent with LS agent with following code:

Sub Initialize
Dim queryString As String
queryString = {( @Adjust(@Created;0;0;10;0;0;0) < @Now)}

Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim DateTime As New NotesDateTime("")
Dim coll As NotesDocumentCollection
Set coll = db.Search( queryString, DateTime, 0 )

Dim s As String
s = Cstr(coll.count)
Call coll.RemoveAll(True )
Print {Number of deleted documents: } & s
End Sub




Help with agent document selection (~Tony Asafanama... 17.Dec.02)
. . RE: Help with agent document select... (~Holly Frokigen... 19.Dec.02)
. . . . RE: Help with agent document select... (~Sean Ekfanamar... 7.Jan.03)
. . . . . . Sure, check out your Server Documen... (~Dan Elhipister... 7.Jan.03)
. . . . . . RE: Help with agent document select... (~Wendy Prevelub... 5.Feb.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS